package com.dianping.cat.consumer.storage.model.transform;

import com.dianping.cat.consumer.storage.model.IVisitor;
import com.dianping.cat.consumer.storage.model.entity.Domain;
import com.dianping.cat.consumer.storage.model.entity.Machine;
import com.dianping.cat.consumer.storage.model.entity.Operation;
import com.dianping.cat.consumer.storage.model.entity.Segment;
import com.dianping.cat.consumer.storage.model.entity.Sql;
import com.dianping.cat.consumer.storage.model.entity.StorageReport;

public abstract class BaseVisitor
  implements IVisitor {
  public void visitDomain(Domain domain) {
/* 14 */     for (Operation operation : domain.getOperations().values()) {
/* 15 */       visitOperation(operation);
    }

/* 18 */     for (Sql sql : domain.getSqls().values()) {
/* 19 */       visitSql(sql);
    }
  }


  public void visitMachine(Machine machine) {
/* 25 */     for (Domain domain : machine.getDomains().values()) {
/* 26 */       visitDomain(domain);
    }
  }


  public void visitOperation(Operation operation) {
/* 32 */     for (Segment segment : operation.getSegments().values()) {
/* 33 */       visitSegment(segment);
    }
  }



  public void visitSegment(Segment segment) {}



  public void visitSql(Sql sql) {}


  public void visitStorageReport(StorageReport storageReport) {
/* 47 */     for (Machine machine : storageReport.getMachines().values())
/* 48 */       visitMachine(machine); 
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/storage/model/transform/BaseVisitor.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */